package com.wgspring.controller;

import com.wgspring.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/loginCheck")
    @ResponseBody
    public boolean loginCheck(String name,String password){
        return userService.checkLoginUser(name,password);
    }



}
